@extends('layouts.master')

@section("css")
    @parent
    <link rel="stylesheet" type="text/css" href="/css/pages/list.css">
    <link rel="stylesheet" type="text/css" href="/css/pages/log/list.css">
@stop

@section("body")
@include("components.left")

<div class="list_content">
    <div class="list_table">
        <table>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>用户</th>
                    <th>操作记录</th>
                    <th>操作时间</th>
                </tr>
            </thead>
            <tbody>
                @foreach($logs as $log)
                <tr>
                    <td>{{$log['id']}}</td>
                    <td>{{$log['user_name']}}</td>
                    <td>{{$log['log']}}</td>
                    <td>{{$log['created_at']}}</td>
                </tr>
                @endforeach
            </tbody>
        </table>
    </div>
    <div class="page_div">
        <div class="page_info">
            共<span>{{$logs->total()}}</span>条记录
        </div>
        <a href="{{$logs->previousPageUrl()}}">
            <div class="prev_page">
                上一页
            </div>
        </a>+
        <a href="{{$logs->nextPageUrl()}}">
            <div class="next_page">
                下一页
            </div>
        </a>
    </div>
</div>

@stop

@section("js")
    @parent
@stop